// import storage from '../utils/storage'
import variables from '../styles/element-variables.scss'
import defaultSettings from '../settings'
import Cookies from 'js-cookie'

const {showSettings, tagsView, fixedHeader, sidebarLogo} = defaultSettings
export default {
  user: {
    tokenKey: 'Admin-Token',
    token: {},
    name: '',
    avatar: '',
    roles: [],
    permissions: []
  },
  settings: {
    theme: variables.theme,
    showSettings: showSettings,
    tagsView: tagsView,
    fixedHeader: fixedHeader,
    sidebarLogo: sidebarLogo
  },
  app: {
    sidebar: {
      opened: Cookies.get('sidebarStatus') ? !!+Cookies.get('sidebarStatus') : true,
      withoutAnimation: false
    },
    device: 'desktop',
    size: Cookies.get('size') || 'medium'
  },
  permission: {
    routes: [],
    addRoutes: []
  },
  tagsView: {
    visitedViews: [],
    cachedViews: []
  }

}
